<%-- 
    Document   : Register
    Created on : Oct 28, 2012, 3:15:54 PM
    Author     : Karl
--%>
<%@page import="bo.TourBO"%>
<%@page import="javabean.TourProgramBean"%>
<%@page import="bo.TourProgramBO"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="javabean.UserBean"%>
<%
    UserBean user = (UserBean) session.getAttribute("userbean");
    if(user==null || !user.getRoleId().equals("1"))
    {
        response.sendRedirect("./AccessDenied.jsp");
    }
%>
<%
    TourProgramBO tourBO=new TourProgramBO();
    TourProgramBean tourprogram=tourBO.isExist(request.getParameter("id"));
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Travel Booking - Xóa chương trình tour</title>
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css" type="text/css" media="screen" />

<script
   type='text/javascript' src="<%=request.getContextPath()%>/javascript/jquery.min.js"></script>
<script
   type='text/javascript' src="<%=request.getContextPath()%>/javascript/scrollto.js"></script>
<script
   type='text/javascript' src="<%=request.getContextPath()%>/javascript/quotable.js"></script>
<!--[if lte IE 6]><style>
.wp-pagenavi a, .wp-pagenavi span.pages, .wp-pagenavi span.current, .wp-pagenavi span.extend {padding: 2px 0; margin: 1px;}
</style><![endif]-->


<link href="css/quotable.css" type="text/css" rel="stylesheet" />
</head>

<body>

<!-- wrapper start -->
<div id="wrapper">

<!-- header start -->
	<div id="header">

            <h1 style="color:white">Travel Booking</h1>

<!-- navigation start -->
		<div id="navigation">
		    <ul>
				<li style="list-style: none;"><a href="../">Trang chủ</a></li>
                                
                                <% if(user!=null) {%>             
                                <li style="list-style: none;"><a href="ChangePassword.jsp">Đổi mật khẩu</a></li>
                                <li style="list-style: none;"><a href="../LogoutServlet" >Đăng xuất</a></li>
                                <% } else { %>
                                <li style="list-style: none;"><a href="Register.jsp">Đăng ký</a></li>
                                <li style="list-style: none;"><a href="Login.jsp">Đăng nhập</a></li>
                                <% } %>
			</ul>
		</div>
<!-- navigation end -->

		<div class="endline"></div>

    </div>
<!-- header end -->

<!-- container start -->
	<div id="container">

		<!-- sidebar start -->
		<div id="sidebar">
			<% if(user!=null && user.getRoleId().equals("1")) { %>
                        <%@include file="ControlPanel.jsp" %>
                        <% } else { %>
                        <div id="searchform">
                            <%@include file="Search.jsp" %> 
			</div>
                        <%@include file="Ads.jsp" %>
                        <% } %>
			<div id="sidebar-bottom"></div>
		</div>
<!-- sidebar end -->

<!-- content start -->
		<div id="content">
                    <form action="../DeleteTourProgramServlet" method="POST" >
                    <table>
                        <tr>
                            <td><center><div style="color:red;size:15px" >BẠN CÓ MUỐN XÓA CHƯƠNG TRÌNH TOUR NÀY KHÔNG?</div></center></td>
                        </tr>
                        <tr><td>
                            <table>
                                <tbody style="border: 1px">
                                    <tr>
                                        <td align="right"><b>Mã chương trình tour:   </b></td>
                                        <td><input type="text" name="tourprogramid" value="<% out.print(tourprogram.getTourProgramId()); %>" readonly="true"/></td>
                                    </tr>
                                    <tr>
                                        <td align="right"><b>Tên chương trình tour:   </b></td>
                                        <td><input type="text" name="tourprogramname" value="<% out.print(tourprogram.getTourProgramName()); %>" readonly="true" style="width: 400px"/></td>
                                    </tr>
                                    <tr>
                                        <td align="right"><b>Hình ảnh:   </b></td>
                                        <td><img src=" <% out.print(tourprogram.getImage()); %> "/></td>
                                    </tr>
                                    <tr>
                                        <td align="right"><b>Lịch trình:   </b></td>
                                        <td><textarea name="itinerary" rows="7" cols="50" readonly="true"><% out.print(tourprogram.getItinerary()); %></textarea></td>
                                    </tr>
                                    <tr>
                                        <td align="right"><b>Lưu ý:   </b></td>
                                        <td><textarea name="notice" rows="7" cols="50" readonly="true"><% out.print(tourprogram.getNotice()); %></textarea></td>
                                    </tr>
                                   
                                    
                                    <tr>
                                        <td align="right"><b>Phương tiện:   </b></td>
                                        <td><input type="text" name="transportation" value="<% out.print(tourprogram.getTransportation()); %>" readonly="true" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right"><b>Giá bao gồm:   </b></td>
                                        <td><textarea name="include" rows="7" cols="50" readonly="true"><% out.print(tourprogram.getInclude()); %></textarea></td>
                                    </tr>
                                    <tr>
                                        <td align="right"><b>Giá không bao gồm:   </b></td>
                                        <td><textarea name="exclude" rows="7" cols="50" readonly="true"><% out.print(tourprogram.getExclude()); %></textarea></td>
                                    </tr>
                                    <tr>
                                        <td align="right"><b>Điều kiện thanh toán:   </b></td>
                                        <td><textarea name="exclude" rows="7" cols="50" readonly="true"><% out.print(tourprogram.getPaymentCondition()); %></textarea></td>
                                    </tr>
                                    
                                </tbody>
                            </table>
                            </td>
                        </tr>                
                        <tr>
                            <td> <center><input type="submit" value="Xóa" name="Delete" /></center></td>
                        </tr>
                        <tr>
                            <td><a href="ListTourProgram.jsp">Trở về danh sách chương trình tour</a></td>
                        </tr> 
                    </table>
                </form>
		</div>

<!-- content end -->

		<div class="endline"></div>

	</div>
<!-- container end -->

<!-- footer start -->
	<div id="footer">
                <p>&COPY; Bản quyên Website thuộc về Công ty TNHH du lịch web-dat-tour</p>
		<p>Modified from: <a href="http://themes.rock-kitty.net">Wordpress Themes</a> designed and coded by <a href="http://www.ezwpthemes.com/">EZwpthemes</a> | <a href="http://www.2cuk.co.uk">2cuk</a></p>
</div>
<!-- footer end -->

</div>
<!-- wrapper end -->

<!--<?php wp_footer(); ?>-->

</body>
</html>

